<?php

namespace App\Models;

// use Illuminate\Database\Eloquent\Model;
use App\Models\BaseModel as Model;

class DeliveryDetail extends Model
{
    protected $primaryKey = 'id';

    protected $fillable = ['delivery_id', 'goods_id', 'sku_id', 'num', 'goods_name'];

    public $timestamps = false;

    /**
     * 商品信息
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function goods()
    {
        return $this->hasOne(Goods::class, 'id', 'goods_id');
    }
}
